slide and divide method of factoring